import { DynamicModule, Global, Module } from "@nestjs/common";
import { ConnectStateService } from "./connect-state/connect-state.service";

Global();
@Module({})
export class ShareModule {
  static forRoot(): DynamicModule {
    return {
      global: true,
      module: ShareModule,
      providers: [ConnectStateService],
      exports: [ConnectStateService],
    };
  }
}
